//
//	AWUserInfo.m
//	Model file generated using JSONExport: https://github.com/Ahmed-Ali/JSONExport



#import "AWUserInfo.h"

NSString *const kAWUserInfoAccountId = @"account_id";
NSString *const kAWUserInfoAccountTiersId = @"account_tiers_id";
NSString *const kAWUserInfoContactAddress = @"contact_address";
NSString *const kAWUserInfoCountryCode = @"country_code";
NSString *const kAWUserInfoEmail = @"email";
NSString *const kAWUserInfoEmailVerified = @"email_verified";
NSString *const kAWUserInfoFbId = @"fb_id";
NSString *const kAWUserInfoFirstName = @"first_name";
NSString *const kAWUserInfoIdField = @"id";
NSString *const kAWUserInfoKycLevelId = @"kyc_level_id";
NSString *const kAWUserInfoLastLoginTime = @"last_login_time";
NSString *const kAWUserInfoLastName = @"last_name";
NSString *const kAWUserInfoMobile = @"mobile";
NSString *const kAWUserInfoOrganizationId = @"organization_id";
NSString *const kAWUserInfoPhoneTfaKeyStatus = @"phone_tfa_key_status";
NSString *const kAWUserInfoPreferLanguage = @"prefer_language";
NSString *const kAWUserInfoReferralCode = @"referral_code";
NSString *const kAWUserInfoSignupCode = @"signup_code";
NSString *const kAWUserInfoTesting = @"testing";
NSString *const kAWUserInfoTfaKeyStatus = @"tfa_key_status";
NSString *const kAWUserInfoUserName = @"user_name";
NSString *const kAWUserInfoVendorId = @"vendor_id";

@interface AWUserInfo ()
@end
@implementation AWUserInfo


static AWUserInfo *_userInfo = nil;
+ (instancetype)sharedInstance {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        if (!_userInfo) {
            _userInfo = [[AWUserInfo alloc] init];
        }
        
    });
    return _userInfo;
}

- (void)initWithDic:(NSDictionary *)dic {
    if (dic) {
        NSArray * temp  = [_userInfo.available2faMethods copy];
        _userInfo = [AWUserInfo yy_modelWithDictionary:dic];
        _userInfo.available2faMethods = temp;
    }
}
AWUserInfo *User(){
    return [AWUserInfo sharedInstance];
}

+ (NSDictionary *)modelContainerPropertyGenericClass {
    // value使用[YYEatModel class]或YYEatModel.class或@"YYEatModel"没有区别
    return @{@"accountTiersId" : [AWAccountTiersId class],
             @"kycLevelId" : [AWKycLevelId class]
    };
}
@end
